package com.crdeng.business.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.crdeng.business.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.crdeng.business.vo.ProductStockVO;
import com.crdeng.business.vo.ProductVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author crdeng
 * @since 2020-12-19
 */
public interface ProductService extends IService<Product> {

    //条件查询
    IPage<Product> getList(Integer pageNum, Integer pageSize, ProductVO productVO);

    IPage<Product> selecPage(Page<Product> page,  Wrapper<Product> queryWrapper);

    /*添加*/
    void add(ProductVO productVO);
    /*编辑物资资料信息*/
    void edit(ProductVO productVO);
    /*根据id修改状态*/
    void alterStatus(Long id,Integer status);

    IPage<ProductStockVO> findProductStocks(Integer pageNum, Integer pageSize, ProductVO productVO);
}
